import request from "@/utils/request";

/**
 * 审核列表（培训维度）
 * @param param
 * @returns {*}
 */
export function getTrainsList(param) {
  return request({
    url: "/systemj/signer/getVerifyList",
    method: "get",
    params: param,
  });
}

/**
 * 报名延期
 * @param param
 * @returns {*}
 */
export function enrollDelay(data) {
  return request({
    url: "/systemj/information/delay",
    method: "post",
    data: data,
  });
}

/**
 * 获取培训详情人员列表
 * @param param
 * @returns {*}
 */
export function getVerityList(param) {
  return request({
    url: "/systemj/signer/getVerifyDetails",
    method: "get",
    params: param,
  });
}

/**
 * 人员审核
 * @param data
 * @returns {*}
 */
export function verity(data) {
  return request({
    url: "/systemj/signer/verifySigner",
    method: "put",
    data: data,
  });
}

/**
 * 批量审核人员
 * @param data
 * @returns {*}
 */
export function batchVerity(data) {
  return request({
    url: "/systemj/signer/verifySignerBatch",
    method: "put",
    data: data,
  });
}

/**
 *
 * @param param
 */
export function addPersonList(param) {
  return request({
    url: "/systemj/signer/addPersonList",
    method: "get",
    params: param,
  });
}

/**
 * 获取培训详情
 * @param param
 * @returns {*}
 */
export function trainsInfo(param) {
  return request({
    url: "/systemj/information/getTrainDetails",
    method: "get",
    params: param,
  });
}

/**
 * 查看报名培训项目列表
 * @param param
 * @returns {*}
 */
export function getProjectList(param) {
  return request({
    url: "/systemj/project/addPerson/projectList",
    method: "get",
    params: param,
  });
}

/**
 * 添加人员培训列表
 * @param data
 * @returns {*}
 */
export function addProjects(data) {
  return request({
    url: "/systemj/signer/addEnrollPerson/addProjects",
    method: "post",
    data: data,
  });
}

/**
 * 查看酒店费用列表
 * @param param
 * @returns {*}
 */
export function getAddPersonExpensesList(param) {
  return request({
    url: "/systemj/expenses/addPerson/accommodationList",
    method: "get",
    params: param,
  });
}

/**
 * 添加 酒店项
 * @param data
 * @returns {*}
 */
export function addExpenses(data) {
  return request({
    url: "/systemj/signer/addEnrollPerson/addAccommodation",
    method: "post",
    data: data,
  });
}

export function backStageEnroll(data) {
  return request({
    url: "/systemj/order/addEnrollPerson/submitEnroll",
    method: "post",
    data: data,
  });
}

/**
 * 线下退款核销
 * @param data
 * @returns {*}
 */
export function refundHexiao(data) {
  return request({
    url: "/systemj/order/hexiao",
    method: "put",
    data: data,
  });
}

/**
 * 当日酒店信息
 * @param param
 * @returns {*}
 */
export function dailyHotelList(param) {
  return request({
    url: "/train/hotel/list",
    method: "get",
    params: param,
  });
}

/**
 * 详情信息
 * @param param
 * @returns {*}
 */
export function getOrderDetail(param) {
  return request({
    url: "/systemj/order/getOrderDetail",
    method: "get",
    params: param,
  });
}
